package com.evildog.workspace.life.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;
import com.evildog.workspace.life.application.bo.NoteBO;
import com.evildog.workspace.life.application.bo.NoteListBO;
import com.evildog.workspace.life.application.dto.NoteDTO;
import com.evildog.workspace.life.application.dto.NoteListDTO;
import com.evildog.workspace.life.application.entity.Note;

import java.util.List;

/**
 * <p>
 * note Service
 * </p>
 *
 * @author evildog
 * @since 2020-08-02
 */
public interface NoteService extends IService<Note> {


    /**
    * 获取List
    */
    List<NoteListBO> getList(List<QueryConditionDTO> queryCondition, NoteListDTO dto);

    /**
    * 获取详情
    */
    NoteBO getDetailById(Long id);

    /**
    * 更新
    */
    boolean updateById(Long id, NoteDTO param);

    /**
    * 保存
    */
    NoteBO save(NoteDTO param);

    boolean remove(Long id);
}
